package com.qding.park.manager.pojo.enums;

/**
 * @author Administrator
 *车辆放行类型
 *0未放行1确认放行2自动放行3手动(软件)4手动按键5磁卡放行6冲卡拍照7无卡车放行8未确认放行(刷工作卡))
 */

public enum CarOpTypeEnum {
	
	WQR("未放行", 0),
	QRFX("确认放行",1),
	ZDFX("自动放行",2),
	SDFX("手动(软件)",3),
	SDAJ("手动按键",4),
	CKFX("磁卡放行",5),
	COKFX("冲卡拍照",6),
	WKFX("无卡车放行",7),
	WQRFX("未放行",8);
	
	public static String getDescByCode(int type){
		String temp="";
		if(type==WQR.getType()){
			temp=WQR.getDesc();
		}else if(type==QRFX.getType()){
			temp=QRFX.getDesc();
		}else if(type==ZDFX.getType()){
			temp=ZDFX.getDesc();
		}else if(type==SDFX.getType()){
			temp=SDFX.getDesc();
		}else if(type==SDAJ.getType()){
			temp=SDAJ.getDesc();
		}else if(type==CKFX.getType()){
			temp=CKFX.getDesc();
		}else if(type==COKFX.getType()){
			temp=COKFX.getDesc();
		}else if(type==WKFX.getType()){
			temp=WKFX.getDesc();
		}else if(type==WQRFX.getType()){
			temp=WQRFX.getDesc();
		}else{
			temp="";
		}
		
		return temp;
	}
	
	/** 描述 */
	private String desc;
	/** 枚举值 */
	private int type;

	private CarOpTypeEnum(String desc, int status) {
		this.desc = desc;
		this.type = status;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
